package com.zjitc.service.imp;

import com.github.pagehelper.PageHelper;
import com.zjitc.doa.CDao;
import com.zjitc.po.CountryPo;
import com.zjitc.service.CountryService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/26 15:00
 * @description:
 */
@Service
public class CountryServiceImp implements CountryService {
  @Autowired
  public CDao cDao;

  @Override
  public List<CountryPo> findCountry() {
    return cDao.find();
  }

  @Override
  public List<CountryPo> findContries(int start,int end) {
    PageHelper.startPage(start, end);
    return cDao.find();
  }
}
